﻿@using Kaio.Core
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>


    @{

        var _url = ViewBag.ActiveUrl as ForumUrl;
    }
    <base href="@ForumContext.Configuration.AbsoluteUrl"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    @*<meta name="robots" content="index,follow" />*@
    <meta name="robots" content="noodp,noydir" />
    <link rel="shortcut icon" type="image/x-icon" href="@string.Format("{0}favicon.ico?v={1}", ForumContext.Configuration.AbsoluteUrl, ForumContext.Version)" />
    <link href="@string.Format("{0}themes/{1}/css.axd?t=.css&packer=1&v={2}", ForumContext.Configuration.AbsoluteUrl, ForumContext.Configuration.SkinName, ForumContext.Version)" rel="stylesheet" type="text/css" />
    @if (_url != null)
    {
        
        @Html.Title(_url.Title)
        <link rel="alternate" type="application/rss+xml" title="@ForumContext.Configuration.ForumName" href="@ForumContext.GetAbsoluteUrl(ForumUrls.RSS_GLOBAL)"  />
        <link rel="canonical" href="@_url.Url" />
        if (!string.IsNullOrWhiteSpace(_url.ShortUrl))
        {
        <link rel="shortlink" href="@_url.ShortUrl" />    
        }

        if (!string.IsNullOrWhiteSpace(_url.RssLink))
        {
        <link rel="alternate" type="application/rss+xml" href="@_url.RssLink"  />
        }

        if (!string.IsNullOrWhiteSpace(_url.Keywords))
        {
        @Html.Meta(MetaTag.Keywords, _url.Keywords)

        }

        if (!string.IsNullOrWhiteSpace(_url.Description))
        {
        @Html.Meta(MetaTag.Description, _url.Description)

        }

        if (_url.Created.HasValue)
        {
        @Html.Meta(MetaTag.Date, _url.Created.Value.ToString("yyyy-MM-ddTHH:mm:sszzz"))   
         
        }
    }
    @Html.Raw(ForumContext.Configuration.HeadContent)
</head>
<body>
    
    <div class="page-wrapper">
        <div id="header">
            <div class="quotation">
            </div>
            <div id="logo" onclick="window.location='/'">
            </div>
        </div>
        @Html.Partial("_NavMenu")
        <div id="main">
            <div class="content">
                @Html.Partial("_LogOn")
                @Html.Partial("_NavAddress")
                <div id="_ajaxContainer">
                    @RenderBody()
                </div>
                <br class="empty" />
                @Html.Partial("_ForumJumpAndTimeZone")
            </div>
        </div>
        <div id="footer">
            <p class="text">
                Powered by <a href="http://mvcforum.net" title="asp.net mvcforum open source">MvcForum.Net</a>
                Version @ForumContext.Version<br />
                @Html.Raw(ForumContext.GetText(LanguageSection.GLOBAL, "COPYRIGHT"))
            </p>
        </div>
    </div>
    @Html.WriteScriptBlocks()
</body>
</html>
